// 判断权限
function hasPermissionJs(val) {
    var restoredSession = JSON.parse(sessionStorage.getItem('userInfo'));
    var roles = restoredSession.user.roles;
    for(var i=0; i<roles.length; i++){
        for(var j=0; j<roles[i].authorities.length; j++){
            if(val == roles[i].authorities[j].mtag){
                return true;
            }
        }
    }
    if(restoredSession.isAdmin==true){
        return true;
    }
    return false;
}
// 弹框提示
function tips(){
    alert(1);
}


export { //很关键
    hasPermissionJs,
    tips,
}
